package com.platform.entity;

import java.io.Serializable;
import java.util.Date;

import com.platform.utils.DateUtils;

/**
 * 审核日志实体
 * 表名 oa_operate_log
 *
 * @author LarkerJin
 * @email 277901879@qq.com
 * @date 2019-03-10 09:46:05
 */
public class OperateLogEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Integer id;
    //对象ID
    private Integer objectId;
    //操作对象类型
    private String objectType;
    //操作类型   //1：创建      2：初审通过      3:复核通过  -1:驳回   99:支付
    private Integer operateType;
    //操作结果
    private Integer operateResult;
    //操作意见
    private String operateRemark;
    //操作人
    private Integer operateUserId;
    //操作人姓名
    private String operateUserName;
    //操作时间
    private Date operateDate;

    private String operateTypeName;

    private String operateDateStr;
    
	private String xmlContent;

    public String getXmlContent() {
		return xmlContent;
	}

	public void setXmlContent(String xmlContent) {
		this.xmlContent = xmlContent;
	}

	public String getOperateDateStr() {
    	if(operateDate != null)
    		return DateUtils.getDateTime(operateDate);
		return "";
	}

	public String getOperateTypeName() {
		if(operateType == null) {
			operateType = 0;
		}
    	switch(operateType) {
	    	case 1:
	    		return "提交";
	    	case 2:
	    		return "审核通过";
	    	case 3:
	    		return "复核通过";
	    	case -1:
	    		return "驳回";
	    	case -2:
	    		return "删除";
	    	case 99:
	    		return "支付";
    	}
		return "";
	}

	/**
     * 设置：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：
     */
    public Integer getId() {
        return id;
    }
    /**
     * 设置：对象ID
     */
    public void setObjectId(Integer objectId) {
        this.objectId = objectId;
    }

    /**
     * 获取：对象ID
     */
    public Integer getObjectId() {
        return objectId;
    }
    /**
     * 设置：操作对象类型
     */
    public void setObjectType(String objectType) {
        this.objectType = objectType;
    }

    /**
     * 获取：操作对象类型
     */
    public String getObjectType() {
        return objectType;
    }
    /**
     * 设置：操作类型
     */
    public void setOperateType(Integer operateType) {
        this.operateType = operateType;
    }

    /**
     * 获取：操作类型
     */
    public Integer getOperateType() {
        return operateType;
    }
    /**
     * 设置：操作结果
     */
    public void setOperateResult(Integer operateResult) {
        this.operateResult = operateResult;
    }

    /**
     * 获取：操作结果
     */
    public Integer getOperateResult() {
        return operateResult;
    }
    /**
     * 设置：操作意见
     */
    public void setOperateRemark(String operateRemark) {
        this.operateRemark = operateRemark;
    }

    /**
     * 获取：操作意见
     */
    public String getOperateRemark() {
        return operateRemark;
    }
    /**
     * 设置：操作人
     */
    public void setOperateUserId(Integer operateUserId) {
        this.operateUserId = operateUserId;
    }

    /**
     * 获取：操作人
     */
    public Integer getOperateUserId() {
        return operateUserId;
    }
    /**
     * 设置：操作人姓名
     */
    public void setOperateUserName(String operateUserName) {
        this.operateUserName = operateUserName;
    }

    /**
     * 获取：操作人姓名
     */
    public String getOperateUserName() {
        return operateUserName;
    }
    /**
     * 设置：操作时间
     */
    public void setOperateDate(Date operateDate) {
        this.operateDate = operateDate;
    }

    /**
     * 获取：操作时间
     */
    public Date getOperateDate() {
        return operateDate;
    }
}
